import React, { useEffect } from 'react';
// import logo from './logo.svg';
import './utils/rem';
import './assets/stylesheets/reset.css';
import { Button } from 'antd-mobile';
import axios from 'axios';

function App() {
  useEffect(() => {
      axios({
        url: '/daoju/v3/zb/client/goods/GoodsApp.php',
        params: {
          output_format: 'json',
          plat: 'h5',
          channel: 1,
          opt_type: 'goods_list_by_ids',
          biz: 'lol',
          page_no: 1,
          page_size: '100',
          platform: '',
          jsonpName: 'goods_app',
          mall_ids: '9919,9917,9578,9449,9276,9149,7031,8740,9030,7986,7993,7992,8709,9187,6736,3391,9586,9581,9591,9596'
        }
      })
      .then(res => {
        console.log(res);
      })
      .catch(err => {
        throw err;
      })
  })
  return (
    <div className="App">
      <Button>
        {/* 测试rem兼容 */}
        <span
        style={{
          fontSize: '.2rem'
        }}
        >测试</span>
      </Button>
      <Button type="primary">primary</Button>
    </div>
  );
}

export default App;
